﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Teacher:Person
    {
        public string Title { get; set; }
        public string Wageno { get; set; }

        public Teacher(string Id, string Name, char Sex, string Cardid, string Tel) : base(Id, Name, Sex, Cardid, Tel)
        {

        }
        public Teacher(string Id, string Name, char Sex, string Cardid, string Tel, string Title, string Wageno) : base(Id, Name, Sex, Cardid, Tel)
        {
            this.Title = Title;
            this.Wageno = Wageno;
        }
        public void print()
        {
            Console.WriteLine("我的教师编号是：{0}，我叫{1}，{2}，身份证号码是：{3}。", this.Id, this.Name, this.Sex, this.Cardid);
            Console.WriteLine("联系方式是：{0}，职称是：{1}，工资号是：{2}。", this.Tel, this.Title, this.Wageno);
        }
    }
}
